package cts.db;

import java.sql.Timestamp;
import java.util.HashSet;
import java.util.Set;

/**
 * Exam entity. @author MyEclipse Persistence Tools
 */

public class Exam implements java.io.Serializable {

	// Fields

	private Integer EId;
	private User user;
	private Course course;
	private String EName;
	private String EInfo;
	private Timestamp startTime;
	private Timestamp endTime;
	private Timestamp addTime;
	private Set questions = new HashSet(0);
	private Set announcements = new HashSet(0);
	private Set stuSolutions = new HashSet(0);

	// Constructors

	/** default constructor */
	public Exam() {
	}

	/** minimal constructor */
	public Exam(User user, Course course, String EName, Timestamp addTime) {
		this.user = user;
		this.course = course;
		this.EName = EName;
		this.addTime = addTime;
	}

	/** full constructor */
	public Exam(User user, Course course, String EName, String EInfo,
			Timestamp startTime, Timestamp endTime, Timestamp addTime,
			Set questions, Set announcements, Set stuSolutions) {
		this.user = user;
		this.course = course;
		this.EName = EName;
		this.EInfo = EInfo;
		this.startTime = startTime;
		this.endTime = endTime;
		this.addTime = addTime;
		this.questions = questions;
		this.announcements = announcements;
		this.stuSolutions = stuSolutions;
	}

	// Property accessors

	public Integer getEId() {
		return this.EId;
	}

	public void setEId(Integer EId) {
		this.EId = EId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Course getCourse() {
		return this.course;
	}

	public void setCourse(Course course) {
		this.course = course;
	}

	public String getEName() {
		return this.EName;
	}

	public void setEName(String EName) {
		this.EName = EName;
	}

	public String getEInfo() {
		return this.EInfo;
	}

	public void setEInfo(String EInfo) {
		this.EInfo = EInfo;
	}

	public Timestamp getStartTime() {
		return this.startTime;
	}

	public void setStartTime(Timestamp startTime) {
		this.startTime = startTime;
	}

	public Timestamp getEndTime() {
		return this.endTime;
	}

	public void setEndTime(Timestamp endTime) {
		this.endTime = endTime;
	}

	public Timestamp getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Timestamp addTime) {
		this.addTime = addTime;
	}

	public Set getQuestions() {
		return this.questions;
	}

	public void setQuestions(Set questions) {
		this.questions = questions;
	}

	public Set getAnnouncements() {
		return this.announcements;
	}

	public void setAnnouncements(Set announcements) {
		this.announcements = announcements;
	}

	public Set getStuSolutions() {
		return this.stuSolutions;
	}

	public void setStuSolutions(Set stuSolutions) {
		this.stuSolutions = stuSolutions;
	}

}